<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<%
    response.setHeader("Cache-Control","no-store");
    response.setDateHeader("Expires", 0);
    response.setHeader("Pragma","no-cache");
%>
<!DOCTYPE html>
<html>
<base href="<%=basePath%>">
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=9,IE=edge,chrome=1" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <meta name="renderer" content="webkit">
    <meta charset="UTF-8">
    <link rel="stylesheet" type="text/css" href="<%=basePath%>/app/css/common.css" />
</head>
<style>
    ::-webkit-scrollbar-track{
        -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
        background-color: #fff;
    }

    ::-webkit-scrollbar{
        width: 6px;
        background-color: #fff;
    }
    ::-webkit-scrollbar:horizontal{
        height: 6px;
    }
    ::-webkit-scrollbar-thumb {
        background-color: #8A8A8A;
        border-radius: 2px;
        -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
    }
</style>
<script type="text/javascript" src="<%=basePath%>/static/js/plugs/jquery-1.11.1.min.js"></script>
<script type="text/javascript" src="<%=basePath%>/app/js/jquery.extends.1.0.js"></script>
<script type="text/javascript" src="<%=basePath%>/app/js/template.js"></script>
<script type="text/javascript" src="<%=basePath%>/app/js/helper.js"></script>
<script type="text/javascript" src="<%=basePath%>/app/js/mui.min.js"></script>
<script type="text/javascript" src="<%=basePath%>/app/js/common.js"></script>
<script type="text/javascript" src="<%=basePath%>/static/js/custom/lime.custom.js"></script>
<script type="text/javascript" src="<%=basePath%>/app/js/appLogin.js"></script>
<script type="text/javascript" src="<%=basePath%>/app/js/lime.extend.js"></script>
<script type="text/javascript" src="<%=basePath%>/app/js/wxShare.js"></script>
<script type="text/javascript" src="<%=basePath%>/app/js/jquery.validate/jquery.validate.min.js"></script>
<script type="text/javascript" src="<%=basePath%>/app/js/jquery.validate/jquery.validate.extend.js"></script>
<script src="//res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<body>
<c:choose>
    <c:when test="${pv == 'index'}"><jsp:include page="default.jsp"/></c:when>
    <c:when test="${pv == 'info'}"><jsp:include page="info.jsp"/></c:when>
    <c:when test="${pv == 'info_detail'}"><jsp:include page="info_detail.jsp"/></c:when>
    <c:when test="${pv == 'material_detail'}"><jsp:include page="material_detail.jsp"/></c:when>
    <c:when test="${pv == 'info_pay'}"><jsp:include page="info_pay.jsp"/></c:when>
    <c:when test="${pv == 'info_author'}"><jsp:include page="info_author.jsp"/></c:when>
    <c:when test="${pv == 'live'}"><jsp:include page="live.jsp"/></c:when>
    <c:when test="${pv == 'live_detail'}"><jsp:include page="live_detail.jsp"/></c:when>
    <c:when test="${pv == 'live_pay'}"><jsp:include page="live_pay.jsp"/></c:when>
    <c:when test="${pv == 'comm'}"><jsp:include page="comm.jsp"/></c:when>
    <c:when test="${pv == 'comm_detail'}"><jsp:include page="comm_detail.jsp"/></c:when>
    <c:when test="${pv == 'comm_reward'}"><jsp:include page="comm_reward.jsp"/></c:when>
    <c:when test="${pv == 'mine' && sessionScope.wx_user_id == null}"><jsp:include page="mine_unlogin.jsp"/></c:when>
    <c:when test="${pv == 'mine_wxlogin' && sessionScope.wx_user_id == null}"><jsp:include page="mine_wxlogin.jsp"/></c:when>
    <c:when test="${pv == 'mine' && sessionScope.wx_user_id != null}"><jsp:include page="mine.jsp"/></c:when>
    <c:when test="${pv == 'mine_info' && sessionScope.wx_user_id != null}"><jsp:include page="mine_info.jsp"/></c:when>
    <c:when test="${pv == 'mine_single' && sessionScope.wx_user_id != null}"><jsp:include page="mine_single.jsp"/></c:when>
    <c:when test="${pv == 'mine_collect' && sessionScope.wx_user_id != null}"><jsp:include page="mine_collect.jsp"/></c:when>
    <c:when test="${pv == 'mine_focus' && sessionScope.wx_user_id != null}"><jsp:include page="mine_focus.jsp"/></c:when>
    <c:when test="${pv == 'mine_history' && sessionScope.wx_user_id != null}"><jsp:include page="mine_history.jsp"/></c:when>
    <c:when test="${pv == 'mine_message' && sessionScope.wx_user_id != null}"><jsp:include page="mine_message.jsp"/></c:when>
    <c:when test="${pv == 'mine_notice' && sessionScope.wx_user_id != null}"><jsp:include page="mine_notice.jsp"/></c:when>
    <c:when test="${pv == 'mine_suggest' && sessionScope.wx_user_id != null}"><jsp:include page="mine_suggest.jsp"/></c:when>
    <c:when test="${pv == 'mine_suggested' && sessionScope.wx_user_id != null}"><jsp:include page="mine_suggested.jsp"/></c:when>
    <c:when test="${pv == 'mine_order' && sessionScope.wx_user_id != null}"><jsp:include page="mine_order.jsp"/></c:when>
    <c:when test="${pv == 'mine_pay' && sessionScope.wx_user_id != null}"><jsp:include page="mine_pay.jsp"/></c:when>

    <%--互动--%>
    <c:when test="${pv == 'act_sign'}"><jsp:include page="act_sign.jsp"/></c:when>
    <c:when test="${pv == 'act_sign_user'}"><jsp:include page="act_sign_user.jsp"/></c:when>
    <c:when test="${pv == 'act_pay'}"><jsp:include page="act_pay.jsp"/></c:when>
    <c:when test="${pv == 'act_sign_notice'}"><jsp:include page="act_sign_notice.jsp"/></c:when>
    <c:when test="${pv == 'act_vote'}"><jsp:include page="act_vote.jsp"/></c:when>
    <c:when test="${pv == 'act_lottery'}"><jsp:include page="act_lottery.jsp"/></c:when>
    <c:when test="${pv == 'act_fund'}"><jsp:include page="act_fund.jsp"/></c:when>
    <c:when test="${pv == 'act_fund_pay'}"><jsp:include page="act_fund_pay.jsp"/></c:when>
    <c:when test="${pv == 'act_fund_user'}"><jsp:include page="act_fund_user.jsp"/></c:when>
    <c:when test="${pv == 'act_fund_order'}"><jsp:include page="act_fund_order.jsp"/></c:when>

    <%--订阅页面--%>
    <c:when test="${pv == 'subscribe'}"><jsp:include page="subscribe.jsp"/></c:when>

    <%--后台预览页面--%>
    <c:when test="${pv == 'info_detail_show'}"><jsp:include page="show/info_detail_show.jsp"/></c:when>
    <c:when test="${pv == 'live_detail_show'}"><jsp:include page="show/live_detail_show.jsp"/></c:when>
    <c:when test="${pv == 'comm_detail_show'}"><jsp:include page="show/comm_detail_show.jsp"/></c:when>
    <c:when test="${pv == 'info_show'}"><jsp:include page="show/info_show.jsp"/></c:when>
    <c:when test="${pv == 'comm_show'}"><jsp:include page="show/comm_show.jsp"/></c:when>
    <c:when test="${pv == 'live_show'}"><jsp:include page="show/live_show.jsp"/></c:when>
    <c:otherwise><jsp:include page="default.jsp"/></c:otherwise>
</c:choose>
<script>
    var _basePath = '<%=basePath%>';
   /* $(function () {
        shareWx(window.location.href,_basePath + "app/images/xqn.png","小清柠","为小而美的自媒体而生");
    })*/
   //登录使用
    var appLogin= {
        loginFlag: '${loginFlag}',
        params: JSON.stringify(${params}),
        needMobile: '${needMobile}',
        member_id: '${member_id}',
        token: '${token}'
    };
</script>
</body>
</html>
